
if [ ! -d zlib-1.2.8 ]; then 
	git clone https://git.oschina.net/wr4ng1er/zlib-1.2.8.git 
else
	echo "zlib-1.2.8 file exit"
fi 

cd zlib-1.2.8
#autoreconf -ivf .
./configure --prefix=/opt/zlib	&& make && make install 

echo 'export PATH=$PATH:/opt/zlib/bin'>>/etc/profile
source /etc/profile
echo '/opt/zlib/lib' >> /etc/ld.so.conf.d/zlib.conf
echo '/opt/zlib/include' >> /etc/ld.so.conf.d/zlib.conf
sudo /sbin/ldconfig


